// 格式化日期时间
function formatDateTime(value) {
    const { year, month, day, hour, minute } = value;
    let result = '';
    if (year) result += `${year}年`;
    if (month) result += `${month}月`;
    if (day) result += `${day}日`;
    if (hour !== undefined && minute !== undefined) {
        result += ` ${hour}:${minute}`;
    }
    return result;
}

module.exports = {
    formatDateTime
}; 